import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/wmsSys',
  component: Layout,
  name: 'wmsSys',
  meta: {
    title: '仓库管理',
    icon: 'ep:office-building',
  },
  children: [
    {
      path: 'material',
      name: 'material',
      component: () => import('@/views/wms/material.vue'),
      meta: {
        title: '耗材管理',
        menu: true,
        breadcrumb: false,
        icon: 'ep:box',
        activeMenu: '/wmsSys',
      },
    },
    {
      path: 'product',
      name: 'product',
      component: () => import('@/views/wms/product.vue'),
      meta: {
        title: '商品管理',
        menu: true,
        breadcrumb: false,
        icon: 'ep:office-building',
        activeMenu: '/wmsSys',
      },
    },
  ],
}

export default routes
